Creates an array of bytes containing a valid SDP that is ready to be transmitted. This function calls Write() and then converts the result to an array of bytes using the UTF-8 character set.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Function 
GetBytes 
As 
Byte()
C#
public 
byte[] 
GetBytes()
Visual C++
public:
array<
unsigned char>^ 
GetBytes()
JavaScript
function 
getBytes();

Return Value

Returns SDP as a new instance of a byte array.

Exceptions

Exception Condition
Microsoft.Rtc.Signaling . . :: . MessageParsingException Thrown when the SDP cannot be composed in its current state.

See Also